﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using SevenZip;

namespace COFE.IO.SZ.Utils
{
    public static class SevenZipWrapperExtension
    {
        public static Stream ExtractOne(this SevenZipExtractor extractor, string fileName)
        {
            MemoryStream ms = new MemoryStream();
            extractor.ExtractFile(fileName, ms);
            return ms;
        }
    }
}
